<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>块元素</title>
    <style>
        div {
            background-color: pink;
            height: 200px;
            width: 500px;
        }
    </style>
</head>
<body>
    <div>独占一行</div> 我在哪里
    <p>
        <div>这里有问题</div>
    </p>
</body>
</html>